]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar: Allow to dismiss resident notifications
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 10 Apr 2015 11:16:20 +0000 (13:16 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 14 Apr 2015 19:57:54 +0000 (21:57 +0200)
Resident notifications are not really a thing anymore with the new
design, so all the user sees are some notifications that mysteriously
cannot be closed. That's utterly confusing, stop doing that.

https://bugzilla.gnome.org/show_bug.cgi?id=746860

js/ui/calendar.js

index 38263e56e9dbde246f012c0c61fcedd3a1a7c2a2..b571e4c6b4e417c0671065d34d27d34a67c19c21 100644 (file)
@@ -1252,10 +1252,6 @@ const NotificationMessage = new Lang.Class({
         this.setUseBodyMarkup(n.bannerBodyMarkup);
     },
 
-    canClose: function() {
-        return !this.notification.resident;
-    },
-
     _onClicked: function() {
         this.notification.activate();
     },